package com.gpj.sgz.system;

import com.gpj.sgz.init.base.General;
import lombok.Getter;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @className Army
 * @description TODO
 * @author GPJ
 * @date 2020/10/1 9:50
 * @version 1.0
 **/
@Getter
public class Army {
	private General mainGeneral;
	private List<General> generals = new ArrayList<>();

	public Army(General mainGeneral, General... viceGenerals) {
		this.mainGeneral = mainGeneral;
		generals.add(mainGeneral);
		generals.addAll(Arrays.asList(viceGenerals));
	}
}
